package com.example.trans.demos.service;

import com.example.trans.demos.mapper.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    // service调用数据库
    @Autowired
    private UserInfoMapper userInfoMapper;

    public Integer insertUser(String Username,String password){
        return userInfoMapper.insert(Username,password);
    }
}
